
print('数字猜谜游戏！')

number = eval(input('请输入您的数字：'))

import random
guessnum = random.randint(0,9)

while number != guessnum:
    if number < guessnum:
        print('猜的数字小了...')
        number = eval(input('请输入您的猜数字：'))
    else:
        print('猜的数字大了...')
        number = eval(input('请输入您的猜数字：'))
print('恭喜，您猜对了')